package com.nbsaas.boot.merchant.rest.convert;

import com.nbsaas.boot.merchant.data.entity.MerchantCertification;
import com.nbsaas.boot.merchant.api.domain.simple.MerchantCertificationSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 商家认证-列表对象转换器
*/

public class MerchantCertificationSimpleConvert implements Converter<MerchantCertificationSimple, MerchantCertification> {




@Override
public MerchantCertificationSimple convert(MerchantCertification source) {
    MerchantCertificationSimple result = new MerchantCertificationSimple();

                result.setNote(source.getNote());
                result.setCertificationType(source.getCertificationType());
                result.setCertificationName(source.getCertificationName());
                result.setCertificationNumber(source.getCertificationNumber());
                result.setAuditRemark(source.getAuditRemark());
                result.setAddDate(source.getAddDate());
                result.setExpiryDate(source.getExpiryDate());
                result.setMerchantId(source.getMerchantId());
                result.setAuditTime(source.getAuditTime());
                result.setAuditUser(source.getAuditUser());
                result.setAuditStatus(source.getAuditStatus());
                result.setId(source.getId());
                result.setIssueDate(source.getIssueDate());
                result.setCertificationImage(source.getCertificationImage());
                result.setCertificationFile(source.getCertificationFile());
                result.setStatus(source.getStatus());
                result.setLastDate(source.getLastDate());


    return result;
}

}